<?php

class calidadPartesModel extends Model2 {
    public function __construct() {
        parent::__construct('calidad.cat_partes');
    }
    
    public function getProducto($id){
        return $this->lista("SELECT * FROM " . $this->_table . " WHERE cliente = $id");
    }
    
    public function getProductos(){
        return $this->lista("SELECT * FROM " . $this->_table . " ORDER BY no_parte");
    }
}

?>
